import javax.swing.*;
import java.awt.BorderLayout;
import java.awt.Choice;
import java.awt.Component;
import java.awt.Font;
import java.awt.Color;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;


public class AppointmentGUI extends JPanel {
    int location;
    public AppointmentGUI() {
        setBackground(Color.LIGHT_GRAY);
        setLayout(new BorderLayout(0, 0));
        
        JPanel panel = new JPanel();
        panel.setBackground(Color.LIGHT_GRAY);
        add(panel, BorderLayout.CENTER);
        panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
        
        JPanel panel_1 = new JPanel();
        panel_1.setBackground(Color.LIGHT_GRAY);
        panel.add(panel_1);
        panel_1.setLayout(new BorderLayout(0, 0));
        
        JList list = new JList();
        panel_1.add(list, BorderLayout.CENTER);
        
        JLabel lblDate = new JLabel("Date");
        panel_1.add(lblDate, BorderLayout.NORTH);
        
        JPanel panel_2 = new JPanel();
        panel_2.setBackground(Color.LIGHT_GRAY);
        panel.add(panel_2);
        panel_2.setLayout(new BorderLayout(0, 0));
        
        JList list_1 = new JList();
        panel_2.add(list_1, BorderLayout.CENTER);
        
        JLabel lblPatient = new JLabel("Patient");
        panel_2.add(lblPatient, BorderLayout.NORTH);
        
        JLabel lblPatientAppointmentLookup = new JLabel("Patient Appointment Lookup");
        lblPatientAppointmentLookup.setBackground(Color.LIGHT_GRAY);
        lblPatientAppointmentLookup.setFont(new Font("Arial", Font.BOLD, 20));
        add(lblPatientAppointmentLookup, BorderLayout.NORTH);
        
        JPanel panel_3 = new JPanel();
        panel_3.setBackground(Color.LIGHT_GRAY);
        add(panel_3, BorderLayout.SOUTH);
        
        JButton btnNewButton = new JButton("Okay");
        btnNewButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
            }
        });
        panel_3.add(btnNewButton);
        
        JButton btnNewButton_1 = new JButton("Cancel");
        panel_3.add(btnNewButton_1);
    }
    
    public int getLoc()
    {
        return location;
    }
    public void setLoc(int i)
    {
        location = i;
    }

}
